# options
BCMDIR    = ..\..\..\libs
SOURCEDEP = src\win32
SOURCEGEN = src
INCLUDES  = -I include -I include\win32 -I $(BCMDIR)
OUTPUT    = lib\win32

# files
OBJDEP = $(OUTPUT)\rte.obj $(OUTPUT)\rte_.obj
OBJGEN = $(OUTPUT)\application.obj
OUTLIB = rte.lib

# compiler
CC = cl

{$(SOURCEDEP)}.cpp{$(OUTPUT)}.obj:
    $(CC) /c /EHsc $(INCLUDES) $< /Fo$@

{$(SOURCEGEN)}.cpp{$(OUTPUT)}.obj:
    $(CC) /c /EHsc $(INCLUDES) $< /Fo$@

all: $(OUTPUT)\$(OUTLIB)

$(OUTPUT)\$(OUTLIB): $(OBJDEP) $(OBJGEN)
	lib /OUT:$(OUTPUT)\$(OUTLIB) $**

distclean:
	del $(OUTPUT)\*.obj

clean:
	del $(OUTPUT)\*.*